Skip to content

SMT2 solver: implement get-value #3461

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Nov 28, 2018
Merged

SMT2 solver: implement get-value #3461

merged 3 commits into from
Nov 28, 2018

Conversation

kroening
Copy link
Member

  • Each commit message has a non-empty body, explaining why the change was made.
  • Methods or procedures I have added are documented, following the guidelines provided in CODING_STANDARD.md.
  • The feature or user visible behaviour I have added or modified has been documented in the User Guide in doc/cprover-manual/
  • Regression or unit tests are included, or existing tests cover the modified code (in this case I have detailed which ones those are in the commit message).
  • n/a My commit message includes data points confirming performance improvements (if claimed).
  • My PR is restricted to a single feature or bugfix.
  • n/a White-space or formatting changes outside the feature-related changed lines are in commits of their own.

@kroening kroening force-pushed the smt2_solver_get-value branch 2 times, most recently from d6f97aa to 81690a5 Compare November 25, 2018 10:11
@kroening kroening force-pushed the smt2_solver_get-value branch from 81690a5 to d6f7c5a Compare November 25, 2018 11:45
Copy link
Contributor

@allredj allredj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✔️
Passed Diffblue compatibility checks (cbmc commit: d6f7c5a).
Build URL: https://travis-ci.com/diffblue/test-gen/builds/92464624

NOT_SOLVED,
SAT,
UNSAT
} status;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we need yet another status enum? We have one for decision procedures, one in prop.h - wouldn't the latter be the right one?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No; this isn't a result from a solver, but the state of the SMT2-LIB protocol between the solver and the client. The key question is whether (check-sat) has been called or not.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe such things could be documented in future? The code only did a straightforward translation from enum values of one type to enum values of another type.

@kroening kroening merged commit f0c59b5 into develop Nov 28, 2018
@kroening kroening deleted the smt2_solver_get-value branch November 28, 2018 19:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants